package net.huashitong.scheduling.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;

import net.huashitong.scheduling.entity.IndustrialCategory;
import net.huashitong.scheduling.filter.ProjectFilter;

@Repository
public class IndustrialCategoryDao extends StringDao<IndustrialCategory> {
	public List<IndustrialCategory> queryIndustrialCategoryByDate(ProjectFilter filter){
		GenericQuery query = createQuery("obj");
    	query.append(" and obj.date = :date").setParam("date", filter.getDate());
    	return query.listResult();
	}

}
